home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsexit.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.3 KB  |  36 lines

  1. /* Copyright (C) 1994 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsexit.h,v 1.2 2000/09/19 19:00:28 lpd Exp $ */
  20. /* Declarations for exits */
  21.  
  22. #ifndef gsexit_INCLUDED
  23. #  define gsexit_INCLUDED
  24.  
  25. void gs_exit_with_code(P2(int exit_status, int code));
  26. void gs_exit(P1(int exit_status));
  27.  
  28. #define gs_abort() gs_exit(1)
  29.  
  30. /* The only reason we export gs_exit_status is so that window systems */
  31. /* with alert boxes can know whether to pause before exiting if */
  32. /* the program terminates with an error.  There must be a better way .... */
  33. extern int gs_exit_status;
  34.  
  35. #endif /* gsexit_INCLUDED */
  36.